package QC.MessageBox.beans.wxmsg.media;

import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

import java.util.List;

/**
 * Created by Andaren on 2017/6/5.
 * Used for:    微信公众号图文素材
 */
public class MPNews {

    private List<Article> articleList;

    public List<Article> getArticleList() {
        return articleList;
    }

    public MPNews setArticleList(List<Article> articleList) {
        this.articleList = articleList;
        return this;
    }

    public JsonObject toJson() {
        JsonObject news = new JsonObject().put("articles", new JsonArray(articleList));
        return news;
    }
}
